package com.macro.mall.portal.dao;

import com.macro.mall.model.PmsCombinedProduct;
import com.macro.mall.model.PmsCombinedProductExample;
import com.macro.mall.portal.domain.ProductDeitail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsCombinedProductDao {
    long countByExample(PmsCombinedProductExample example);

    int deleteByExample(PmsCombinedProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PmsCombinedProduct record);

    int insertSelective(PmsCombinedProduct record);

    List<PmsCombinedProduct> selectByExample(PmsCombinedProductExample example);

    PmsCombinedProduct selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PmsCombinedProduct record, @Param("example") PmsCombinedProductExample example);

    int updateByExample(@Param("record") PmsCombinedProduct record, @Param("example") PmsCombinedProductExample example);

    int updateByPrimaryKeySelective(PmsCombinedProduct record);

    int updateByPrimaryKey(PmsCombinedProduct record);

    /**
     * 根据主商品id查询子商品详情
     * @param productId
     * @return
     */
    List<ProductDeitail> selectOrderProductDetail(@Param("productId") Long productId);
}